
/**
 *@des 消息通知相关接口
 *@author yiiframe 21931118@qq.com
 *@blog http://www.yiiframe.com
 *@date 2019/1/1 07:25:00
 *@param message.js
 */

import request from './request.js'

// 查询我的消息通知列表
export function messageSearch(data) {
  return request({
    url: '/message/my/search',
    method: 'GET',
    data: data
  })
}

/**
 * 已读
 */
export function messageRead(id) {
  return request({
    url: `/message/my/read/${id}`,
    method: 'post'
  })
}

/**
* 全部已读
*/
export function messageReadAll() {
  return request({
    url: `/message/my/read/all`,
    method: 'post'
  })
}
